
.preview {
  width: 100%;
  height: 100%;
  background-size: cover;
  position: relative;
  perspective: 1000px;
}

.preview .help {
  width: 0.6rem;
  position: absolute;
  right: 0.2rem;
  top:0.2rem;
  z-index: 100;
}

.preview .help img {
  width: 100%;
}

.preview .block {
  width: 50%;
  margin: 0 auto;
  position: absolute;
  top: 15%;
  left: 25%;
}

.preview .block img {
  width: 100%;
}

.preview .block .edit .pageDiv {
  position: relative;
  width: 100%;
  height: 100%;
}

.preview .block .edit .pageDiv .templateDiv {
  width: 100%;
  height: 100%;
}

.preview .block .edit {
  width: 100%;
  display: block;
  position: relative;
  z-index: 999;
}

.flipbook {
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  -webkit-transform-origin: 0 50%;
  transform-origin: 0 50%;
  -webkit-transform: rotateY(0deg);
  -ms-transform: rotateY(0deg);
  -o-transform: rotateY(0deg);
  transform: rotateY(0deg);
  /*backface-visibility: hidden;*/
}

.turnLeftAnimation {
  -webkit-animation-name: turnLeft;
  animation-name: turnLeft
}

.turnRightAnimation {
  -webkit-animation-name: trunRight;
  animation-name: trunRight
}

@keyframes turnLeft {
  0% {
    -webkit-transform: rotateY(0deg);
    -ms-transform: rotateY(0deg);
    -o-transform: rotateY(0deg);
    transform: rotateY(0deg);
  }
  50% {
    -webkit-transform: rotateY(-160deg);
    -ms-transform: rotateY(-160deg);
    -o-transform: rotateY(-160deg);
    transform: rotateY(-160deg);
  }
  100% {
    -webkit-transform: rotateY(-180deg);
    -ms-transform: rotateY(-180deg);
    -o-transform: rotateY(-180deg);
    transform: rotateY(-180deg);
    opacity: 0;
  }
}

@-webkit-keyframes turnLeft {
  0% {
    -webkit-transform: rotateY(0deg);
    -ms-transform: rotateY(0deg);
    -o-transform: rotateY(0deg);
    transform: rotateY(0deg);
  }
  50% {
    -webkit-transform: rotateY(-160deg);
    -ms-transform: rotateY(-160deg);
    -o-transform: rotateY(-160deg);
    transform: rotateY(-160deg);
  }
  100% {
    -webkit-transform: rotateY(-180deg);
    -ms-transform: rotateY(-180deg);
    -o-transform: rotateY(-180deg);
    transform: rotateY(-180deg);
    opacity: 0;
  }
}

@keyframes trunRight {
  0% {
    -webkit-transform: rotateY(-180deg);
    -ms-transform: rotateY(-180deg);
    -o-transform: rotateY(-180deg);
    transform: rotateY(-180deg);
    opacity: 0.5;
  }
  100% {
    -webkit-transform: rotateY(0deg);
    -ms-transform: rotateY(0deg);
    -o-transform: rotateY(0deg);
    transform: rotateY(0deg);
    opacity: 1;
  }
}

@-webkit-keyframes trunRight {
  0% {
    -webkit-transform: rotateY(-180deg);
    -ms-transform: rotateY(-180deg);
    -o-transform: rotateY(-180deg);
    transform: rotateY(-180deg);
    opacity: 0.5;
  }
  100% {
    -webkit-transform: rotateY(0deg);
    -ms-transform: rotateY(0deg);
    -o-transform: rotateY(0deg);
    transform: rotateY(0deg);
    opacity: 1;
  }
}
